--[[

        story_chat.lua
        exported by excel2lua.py
        from file:story_chat.xls

--]]

local _data = {
  [1] = {id = 1,group = 1,content = '各类商品应有尽有。',hero = 'guxiaohua',dir = 1,},
  [2] = {id = 2,group = 1,content = '童叟无欺，物美价廉，快来选购吧！',hero = 'guxiaohua',dir = 1,},
  [3] = {id = 3,group = 2,content = '年轻的勇士哟。',hero = '',dir = 1,},
  [4] = {id = 4,group = 2,content = '是否要前往秘境挑战自己呢？',hero = '',dir = 1,},
}

local id_to_index={
   [1] = 1,
   [2] = 2,
   [3] = 3,
   [4] = 4,
}

local story_chat={}

function story_chat.length() 
   return #_data 
end 

function story_chat.indexOf(index) 
   return _data[index] 
end 

function story_chat.get(id) 
  return story_chat.indexOf(id_to_index[id])
end 

return story_chat